<?php
/* @var $this CompanyController */
/* @var $model Company */

$this->breadcrumbs=array(
	'Companies'=>array('index'),
	$model->title=>array('view','id'=>$model->id),
	'repassword',
); 
 
?> 
<script type="text/javascript">
   $(document).ready(function(e) {
          $("#subButton").click(function(){
              $('#alipayment').submit();
          });
             $("#subButton").colorbox({
                href:"<?php echo Yii::app()->createUrl('company/mask');?>",
                close: "【关闭】",
                initialWidth:400,
                initialHeight:260,
                width:'400px',
                height:'260px',
                overlayClose:false,
                title:"支付等待" 
               }); 
            });    
   function succeed(){
       location.reload();
   }
   function failure(){
      location.href="<?php echo Yii::app()->createUrl('smsorders/admin');?>";
   }

</script>

<h1>短信充值 <span class="smscount">当前短信剩余：<span class="candara"><?php echo $model->point;?></span> 条</span></h1>
 

<div class="form">

<form id="alipayment" name="alipayment" action="<?php echo Yii::app()->createUrl('alipay/index')?>" method="post" target="_blank"> 

<div class="row">
    <?php 
        echo CHtml::radioButtonList(
            'totalfee',
            '100',
             $freearray,
             array('id'=>'totalfee') 
            ); 
    ?>

</div>
 
<div class="row buttons showpay">
    <div class="payment"></div> <?php echo CHtml::submitButton('支付宝充值',array('class'=>'subButton','id'=>'subButton')); ?>
</div>
</form>

</div><!-- form -->